<?php
namespace Datacore\model;

class BasicModel
{
    private $map = null;
    function getMap() {
        $this->map = array();
    }
    function __set($key,$value){
        $this->map[$key] = $value;
    }
    function __get($key){
        return $this->map[$key];
    }
    function __call($name,$arguments) {
        if(substr($name,0,3)=='set'){
            $this->__set(strtolower(substr($name,3)),$arguments[0]);
        }else{
            return $this->__get(strtolower(substr($name,3)));
        }
    }
}